/* 获取个人信息 */

import type { ProfileDetail, ProfileParams } from "@/types/member"
import { http } from "@/utils/http"

// 获取个人信息
export const getMemberProfileAPI = ()=>{
  return http<ProfileDetail>({
    method:'GET',
    url:'/member/profile'
  })
}

// 修改个人信息
export const putMemberProfieAPI = (data:ProfileParams)=>{
  return http<ProfileDetail>({
    method:'PUT',
    url:'/member/profile',
    data
  })
}